home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 9
/
FM Towns Free Software Collection 9.iso
/
t_os
/
tool
/
otohime
/
src
/
iotsmp.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-11-16
|
6KB
|
273 lines
#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
extern int sampDialogId ;
extern int sampOkBtnId ;
extern int sampOkchk() ;
extern int sampPlayBtnId ;
extern int sampPlay() ;
extern int sampUndoBtnId ;
extern int sampUndo() ;
extern int sampCanBtnId ;
extern int sampCanchk() ;
extern int sampMesId[7] ;
extern int sampSubDialogId ;
extern int sampRateNumId ;
extern int sampInfBtnId ;
extern int sampInf() ;
#define ALIGN 4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
/* MMI_init 用データ */
/* ヘッダ */
MMIINIT initDataIOTSMP = { "MmiInit", 15, 0 } ;
/* sampDialogId */
static MMIPACKET d001 = { &sampDialogId,
NULL,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
MS_NONE
} ;
static DIALOGL40 d001d = { MS_BTLEFTL40 | MS_EVMOSONL40,
124, 165, 516, 316, 8, 4, 8,
MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* sampOkBtnId */
static MMIPACKET d002 = { &sampOkBtnId,
&sampDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d002d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
144, 286, 205, 309,12, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
sampOkchk,
0x0000
} ;
/* sampPlayBtnId */
static MMIPACKET d003 = { &sampPlayBtnId,
&sampDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d003d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
214, 286, 275, 309, 7, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
sampPlay,
0x0000
} ;
/* sampUndoBtnId */
static MMIPACKET d004 = { &sampUndoBtnId,
&sampDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d004d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
284, 286, 345, 309, 7, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
sampUndo,
0x0000
} ;
/* sampCanBtnId */
static MMIPACKET d005 = { &sampCanBtnId,
&sampDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d005d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
436, 286, 497, 309,10, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
sampCanchk,
0x0000
} ;
/* sampMesId[0] */
static MMIPACKET d006 = { &sampMesId[0],
&sampDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d006d = { MS_CENTERL40 | MS_DSPONLYL40,
153, 289, 196, 306, 8,15, 8,
MS_NONEL40,
"実 行",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* sampMesId[1] */
static MMIPACKET d007 = { &sampMesId[1],
&sampDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d007d = { MS_CENTERL40 | MS_DSPONLYL40,
222, 289, 268, 306, 8,15, 8,
MS_NONEL40,
"再 生",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* sampMesId[2] */
static MMIPACKET d008 = { &sampMesId[2],
&sampDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d008d = { MS_CENTERL40 | MS_DSPONLYL40,
290, 289, 341, 306, 8,15, 8,
MS_NONEL40,
"アンドゥ",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* sampMesId[4] */
static MMIPACKET d009 = { &sampMesId[4],
&sampDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d009d = { MS_CENTERL40 | MS_DSPONLYL40,
445, 289, 489, 306, 8,15, 8,
MS_NONEL40,
"取 消",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* sampSubDialogId */
static MMIPACKET d010 = { &sampSubDialogId,
&sampDialogId,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
MS_NONE
} ;
static DIALOGL40 d010d = { MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
144, 193, 497, 280, 8, 4, 8,
MS_DFRAMEL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* sampRateNumId */
static MMIPACKET d011 = { &sampRateNumId,
&sampSubDialogId,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d011d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
289, 242, 352, 265, 8, 4, 8,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
9600,1000,9999, 100, 0,
263, 264
} ;
/* sampMesId[5] */
static MMIPACKET d012 = { &sampMesId[5],
&sampSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d012d = { MS_CENTERL40 | MS_DSPONLYL40,
232, 211, 409, 228, 0,15, 8,
MS_NONEL40,
"新サンプリングレート(Hz)",
1, 12, 12,
MS_BOLDL40,
0, 0
} ;
/* sampInfBtnId */
static MMIPACKET d013 = { &sampInfBtnId,
&sampDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d013d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
354, 286, 415, 309, 7, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
sampInf,
0x0000
} ;
/* sampMesId[6] */
static MMIPACKET d014 = { &sampMesId[6],
&sampDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d014d = { MS_LEFTL40 | MS_DSPONLYL40,
148, 170, 310, 189, 8,15, 8,
MS_NONEL40,
"サンプリングレートの変更",
1, 12, 12,
MS_BOLDL40,
0, 0
} ;
/* sampMesId[3] */
static MMIPACKET d015 = { &sampMesId[3],
&sampDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d015d = { MS_CENTERL40 | MS_DSPONLYL40,
362, 289, 408, 306, 8,15, 8,
MS_NONEL40,
"情 報",
1, 12, 12,
MS_NONEL40,
0, 0
} ;